package com.tyust.lawyermanager.dongao.service;

import com.tyust.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

public interface LawyerService {
    public int removeLawyer(int lawyerid);
    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 添加成功放回1
     */
    public int addLawyer(Lawyer lawyer);

    /**
     * 查询所有律师
     * @return
     */
    public List<Lawyer> findLawyer();

    /**
     * 按照编号查询律师
     * @param lawyerid 律师编号
     * @return 返回查询到的律师对象
     */
    public Lawyer findLawyerById(int lawyerid);

    /**
     * 修改律师
     * @param lawyer 律师对象
     * @return 修改成功返回0
     */
    public int modifyLawyer(Lawyer lawyer);
}




